package com.sxt.bean;

public class User {
	private String name;
	private int age;
	public boolean isStudent;

	public User() {

	}

	public User(String name, int age, boolean isStudent) {
		this.name = name;
		this.age = age;
		this.isStudent = isStudent;
	}
	

	public String getName() {
		return name;
	}

	public void walk() {
		System.out.println(name + "正在散步！");
	}

	@SuppressWarnings("unused")
	private void eat(String food) {
		System.out.println(name + "正在吃" + food);
	}

	public String isStudent() {
		return isStudent ? "是学生" : "不是学生";
	}

	public String info(String sex) {
		return name + "今年" + age + "岁，性别" + sex;
	}
}
